repo: Allocate a tmpdir for each OstreeFetcher to isolate concurrent downloads
authorAlexander Larsson <alexl@redhat.com>
Fri, 11 Dec 2015 18:30:20 +0000 (19:30 +0100)
committerAlexander Larsson <alexl@redhat.com>
Mon, 14 Dec 2015 07:39:11 +0000 (08:39 +0100)
commit96eed957205c5a318c2849100778d48aad748469
tree75bebb23765fcf51bdd98c93831d576c3713b4ab
parentf771461b4a048d2fb9acde9d38f833438bc51a29
repo: Allocate a tmpdir for each OstreeFetcher to isolate concurrent downloads

This way two pulls will not use the same tmpdir and accidentally
overwrite each other. However, consecutive OstreeFetchers will reuse
the tmpdirs, so that we can properly resume downloading large objects.

https://bugzilla.gnome.org/show_bug.cgi?id=757611
src/libostree/ostree-fetcher.c
src/libostree/ostree-fetcher.h
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo.c